Skip to content

v2.15.1 Adding limit_response to get_tasks method #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Nov 6, 2023
Merged

Conversation

FernandoLopez85
Copy link
Collaborator

@FernandoLopez85 FernandoLopez85 commented Nov 3, 2023

Pull Request Summary

Description

Added the limited_response argument to the get_tasks() method

How did you test your code?

Which of the following have you done to test your changes? Please describe the tests that you ran to verify your changes.

  • Created new unit tests in tests/ for the newly implemented methods
  • Updated existing unit tests in tests/ to cover changes made to existing methods

Checklist

Please make sure all items in this checklist have been fulfilled before sending your PR out for review!

  • I have commented my code in details, particularly in hard-to-understand areas
  • I have updated Readme.rst document with examples for newly implemented public methods
  • I have reviewed Deployment and Publishing Guide for Python SDK document
  • I incremented the SDK version in _version.py (unless this PR only updates the documentation).
  • In order to release a new version, a "Release Summary" needs to be prepared and published after the merge

Copy link
Contributor

@jonathanfeng-scale jonathanfeng-scale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we can add in a test-case to make sure that the limited_response is working (fields that shouldn't be there don't exist), that'll be perfect!

@@ -273,6 +273,9 @@ def tasks(self, **kwargs) -> Tasklist:
If true, returns a pre-signed s3 url for the
attachment used to create the task.

limited_response (bool):
If true, returns limited task response.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we document what fields are returned in the limited_response?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, we can both document it in this comment section as well as document it in the Readme with more details.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it! Just updated with the new version specifying fields to be returned as comments and also added to the readme

@@ -392,6 +397,9 @@ def get_tasks(
If true, returns a pre-signed s3 url for the
attachment used to create the task.

limited_response (bool):
If true, returns limited task response.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably document it here too, just so people know in the future what it is instead of asking us 😆

Copy link
Contributor

@ivan-scale ivan-scale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fatihkurtoglu fatihkurtoglu changed the title v2.15.1 Adding limit_response v2.15.1 Adding limit_response to get_tasks method Nov 6, 2023
@fatihkurtoglu fatihkurtoglu merged commit 12d1721 into master Nov 6, 2023
@fatihkurtoglu fatihkurtoglu deleted the v2.15.1 branch November 6, 2023 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants